package com.example.ramon.projetocinemovies;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by ramon on 25/10/14.
 */
public class FilmesSQLHelper extends SQLiteOpenHelper {


    public FilmesSQLHelper(Context context) {
        super(context, "dbFilmes", null, 1);
    }

    @Override
    public void onCreate(SQLiteDatabase sqLiteDatabase) {
        sqLiteDatabase.execSQL(
                "CREATE TABLE filmes (_id INTEGER PRIMARY KEY AUTOINCREMENT," +
                        "nome TEXT NOT NULL,sinopse TEXT,data_estreia TEXT, elenco TEXT, cartaz TEXT,diretor  TEXT");

    }

    @Override
    public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i2) {

    }
}
